package cn.hnh.mapper;
import cn.hnh.pojo.Comments;
import cn.hnh.vo.ArticleCommentsVo;
import cn.hnh.vo.CommentsVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @Author HuangNianHong
 * @Time 2021/1/5
 */
@Mapper
@Repository
public interface CommentsMapper {
    public Integer getCommentsCountByArticleId(Integer articleId);
    public List<CommentsVo> getParentCommentByDescription(String description);
    public List<ArticleCommentsVo> getChildCommentsByParentCommentId(@Param("articleid") Integer articleid,@Param("commentid") Integer commentid);
}
